<!--#include file="./doctype.html"-->
<title>批量替换-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<div class="alert alert-success">
		<span class="close" data-dismiss="alert">&times;</span>
		<strong>注意：</strong>批量替换，不可以恢复数据，替换后需要清理缓存！
	</div>
	<form method="post" action="<%=fileName%>?q=save" class="mb10" role="form">
        <div class="form-group fix">
            <input id="batchId" name="batchId" class="form-control inline w30" placeholder="替换内容的项目ID" value="0" />
            <label class="inline control-label" for="batchId">替换内容的项目ID，多个ID用逗号“,”分隔，0或空则替换该类型下的所有项目</label>
        </div>
        <div class="form-group fix">
            <select name="reType" id="reType" class="form-control inline w30">
            	<option value="1">产品</option>
            	<option value="2">留言</option>
            	<option value="3">文章</option>
            	<option value="4">企业简介</option>
            	<option value="5">模板</option>
            </select>
            <label class="inline control-label" for="reType">替换类型</label>
        </div>
        <div class="form-group fix">
            <label class="inline control-label" for="reContent">要替换的内容</label>
            <textarea id="reContent" name="reContent" class="form-control check_value" rows="3" placeholder="要替换的内容"></textarea>
        </div>
        <div class="form-group fix">
            <label class="inline control-label" for="resultContent">替换后的内容(替换为没有则留空)</label>
            <textarea id="resultContent" name="resultContent" class="form-control" rows="3" placeholder="替换后的内容(替换为没有则留空)"></textarea>
        </div>
		<div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
    $('.check_value').checkEmpty();
$(this)
	.on('submit', 'form', function(){
		var check = $.submitForm('.check_value');
		if(!check) {
		    return check;
		}
		/*if(!window.confirm('替换后将不可以恢复，确认？')) {
		    return false;
		}*/
	})
});
</script>
</body>
</html>